package com.atues.sugar.innerClass;

public class OutterClass {
    private String userName;

    public void test(){
        //这里i初始化为1后就不能再被修改
        int i=1;
        class Inner{
            public void printName(){
                System.out.println(userName);
                System.out.println(i);
            }
        }
    }

    public static void main(String[] args) {
        OutterClass outterClass = new OutterClass();
        outterClass.test();

    }
}